import axios from 'axios';

//获取列表
export const getCarList = () => {
    return (dispatch:any) => {
        axios.get('/api/product').then(res => {
            dispatch({type:'getCarList',carlist:res.data})
        })
    }
}

export const changeNum = (status:string,parentIndex:number,productId:number) => {
    return {
        type:'changeNum',
        status,
        parentIndex,
        productId
    }
}

